ul {
  margin: 0;
  padding: 0;
  background: rgb(0, 107, 121);
}

li {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: gold;
  display: block;
  padding: 10px;
  text-align: center;
}

a:hover {
  background: gold;
  color: rgb(0, 107, 121);
}

nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
}

nav > ul li {
  flex: 1;
  min-width: 100px;
}

.sub_menu {
  display: none;
  position: absolute;
}

.menu2 li:hover .sub_menu {
  display: flex;
  flex-flow: column nowrap;
  background: #000;
}

.menu2 .sub_menu li {
    flex:0;
  max-width: 200px;
  word-wrap: break-word;
}
